import request from '@/utils/request'

// 查询军分法列表
export function listMi(query) {
  return request({
    url: '/library/mi/list',
    method: 'get',
    params: query
  })
}

// 查询军分法详细
export function getMi(sysid) {
  return request({
    url: '/library/mi/' + sysid,
    method: 'get'
  })
}

// 新增军分法
export function addMi(data) {
  return request({
    url: '/library/mi',
    method: 'post',
    data: data
  })
}

// 修改军分法
export function updateMi(data) {
  return request({
    url: '/library/mi',
    method: 'put',
    data: data
  })
}

// 删除军分法
export function delMi(sysid) {
  return request({
    url: '/library/mi/' + sysid,
    method: 'delete'
  })
}

// 导出军分法
export function exportMi(query) {
  return request({
    url: '/library/mi/export',
    method: 'get',
    params: query
  })
}
